#pragma once
#include"Box2D/Dynamics/b2ContactManager.h"
#include"Box2D/Dynamics/Contacts/b2Contact.h"
#include"Box2D/Dynamics/b2WorldCallbacks.h"

class DemoPrismaticJoint;

class BallMoveContactListener :public b2ContactListener
{
public:
	BallMoveContactListener(DemoPrismaticJoint* main);
	~BallMoveContactListener();

	virtual void BeginContact(b2Contact* contact);
	
	virtual void EndContact(b2Contact* contact);

	virtual void PreSolve(b2Contact* contact, const b2Manifold* oldManifold);
	
	virtual void PostSolve(b2Contact* contact, const b2ContactImpulse* impulse);
private:
	DemoPrismaticJoint * app;

};
